//
//  DDPlayMusicViewController.h
//  DDMusic
//
//  Created by rimi on 16/11/10.
//  Copyright © 2016年 FengBaoFamily. All rights reserved.
//
/******************这是音乐播放器界面***********************/
#import <UIKit/UIKit.h>
#import "DDMusicModel.h"
#import <AVFoundation/AVFoundation.h>
#pragma mark 播放歌曲的模式
typedef NS_ENUM(NSInteger, PlayMusicStyle) {
    webMusicStyle,//网络播放
    nativeMusicStyle//本地播放
    
    
};
@interface DDPlayMusicViewController : UIViewController
@property (nonatomic,assign) PlayMusicStyle style;//播放音乐的类型
@property (nonatomic,strong) NSMutableArray<DDMusicModel*>* playMusicList;//播放音乐的列表
#pragma mark 需要和tabBar交互的属性
@property (nonatomic,strong) UIButton* stopOrPauseBtn;//暂停继续按钮
@property (nonatomic,strong) UIButton* nextBtn;//下一首按钮
@property (nonatomic,strong) AVPlayer* player;//音乐播放器
@property (nonatomic,strong) DDMusicModel* currentPlayModel;//当前播放的音乐模型
+ (instancetype)sharedDDPlayMusicViewController;//获取单例播放器
#pragma mark 需要和tabBar交互的方法
- (void)playNextOrUpBtnClicked:(UIButton*)button;
@end
